

function Painter(ctx){
    var context = ctx;
    var center = {};
        
    var init = function(){
        center[0] = context.canvas.width/2;
        center[1] = context.canvas.height/2;
    };
                  
    
    this.drawCircle = function(){        
    };
    
    this.drawArc = function(){
    };
    
    this.drawRectangle = function(){
    };
    
    this.drawImage = function(){
    };
    
    this.drawText = function(){
    };
    
    this.drawPolygon = function(){
    };
    
    this.drawCurves = function(){
    };
    
    init();
}



function main(){
    var context = document.getElementById('myCanvas').getContext('2d');
    
    var painter = new Painter(context);
    
    /* your exercise: implement the following functions */
    
    //painter.drawCircle();
    //painter.drawArc();
    //painter.drawRectangle();
    //painter.drawText();    
    //painter.drawPolygon();
    //painter.drawCurves();
    //painter.drawImage();        
    
}

